//
//  Person.h
//  Memory2
//
//  Created by cora1n on 14-8-11.
//  Copyright (c) 2014年 devwu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Car.h"
@interface Person : NSObject
{
    Car * _car;
}
@property NSString * name;
-(void)setCar:(Car*)car;
-(Car*)car;

-(Car *)someCar;

//延迟释放的应用场景

//tips: OC中所有以 alloc, init ,copy ,mutableCopy 等开头的方法都含有特殊意义,一般情况下,不要这样命名
-(Person*)initWithName:(NSString*)name;
+(Person*)personWithName:(NSString*)name;

@end
